import RouteNest from 'views/RouteNest'
import PageA from 'views/RouteNest/PageA'
import PageB from 'views/RouteNest/PageB'
import RoutingGuard from 'views/RoutingGuard'

const _config = {
    path: '/route',
    name: "route",
    order: 200,
    meta: { title: '路由', icon: "" }, 
    children: [
        {
            // 路由嵌套配置 子路由配置 noAside: true,
            path: '/routeNest', 
            name: "routeNest",
            component: RouteNest, 
            meta: { title: '路由嵌套', icon: "" },
            children: [
                {
                    path: '/pageA',
                    noAside: true,
                    name: "pageA",
                    meta: { title: 'pageA', icon: "" },
                    component: PageA
                },
                {
                    path: '/pageB',
                    noAside: true, 
                    name: "pageB",
                    meta: { title: 'pageB', icon: "" },
                    component: PageB
                }
            ]
        }, 
        { 
            path: '/routingGuard', 
            name: "RoutingGuard",
            component: RoutingGuard, 
            meta: { title: '路由守卫', icon: "" }, 
        }
    ]
}
export default _config